<p>
    Še nekaj korakov in vključeni boste v sejem učbenikov! Prosimo vas, da še izpolnite polja z vašimi podatki.
</p>
{if $smarty.session.znf.authenticated}
    <form id="registrationForm" action="index.php?{$znf.moduleIndex}=user&amp;{$znf.actionIndex}=update" method="post">
{else}
    <form id="registrationForm" action="index.php?{$znf.moduleIndex}=user&amp;{$znf.actionIndex}=register" method="post">
{/if}
    <fieldset>
        <legend>Osebni podatki</legend>
        {if $smarty.session.znf.authenticated}
            <input type="hidden" id="id" name="id" value="{$user.id}" />
        {/if}
        <input type="hidden" id="key" name="{$key}" />
        <table>
            <tbody>
                <tr>
                    <td><label for="name">Ime *</label></td>
                    <td><input id="name" type="text" name="name" size="25" value="{$user.name}"/></td>
                </tr>
                <tr>
                    <td><label for="surname">Priimek *</label></td>
                    <td><input id="surname" type="text" name="surname" size="25" value="{$user.surname}"/></td>
                </tr>
                <tr>
                    <td><label for="phone">Hišni telefon</label></td>
                    <td><input id="phone" type="text" name="phone" size="25" value="{$user.phone}"/></td>
                </tr>
                <tr>
                    <td><label for="cell">Prenosni telefon</label></td>
                    <td><input id="cell" type="text" name="cell" size="25" value="{$user.cell}"/></td>
                </tr>
            </tbody>
        </table>
    </fieldset>
    <p>
    	Vaši podatki bodo uporabljeni samo zato, da vas lahko povežemo z drugimi uporabniki in v nikakršnem primeru ne bodo posredovani katerikoli tretji osebi	brez vašega privoljenja.
    </p>
    <fieldset>
        <legend>Podatki za prijavo</legend>
        <table>
            <tbody>
				<tr>
                    <td><label for="username">Uporabniško ime *</label></td>
		    {if $smarty.session.znf.authenticated}
		    		<td colspan="2"><input id="username" type="text" readonly="readonly" name="username" size="10" value="{$user.username}"/></td>
		    {else}
                    <td>
						<input id="username" type="text" name="username" size="10" />
					</td>
					<td>
						<img src="images/{$smarty.session.znf.theme}/userAvailable.png" alt="Uporabniško ime je prosto" style= "visibility: hidden" id="checkUsernameIcon" />
					</td>
				<tr>
					<td>&nbsp;</td>
					<td colspan="2">
						<a class="button small" id="checkUsername" href="index.php?{$znf.moduleIndex}=user&amp;{$znf.actionIndex}=checkUsername"> Je upor. ime zasedeno?</a>
					</td>
		    {/if}
                </tr>
                <tr>
                    <td><label for="email">E-poštni naslov *</label></td>
                    <td colspan="2"><input id="email" type="text" name="email" size="25" value="{$user.email}"/></td>
                </tr>
                <tr>
                	<td colspan="3"><b>Geslo vam bo poslano na e-poštni naslov</b></td>
                </tr>
            </tbody>
        </table>
	</fieldset>
	<br />
	<br />
	<fieldset>
		<legend>Kontakti za takojšnje sporočanje</legend>
        <table>
        	<tbody>
                <tr>
                    <td><label for="msn">MSN</label></td>
                    <td><input id="msn" type="text" name="msn" size="25" value="{$user.msn}"/></td>
                </tr>
                <tr>
                    <td><label for="icq">Icq</label></td>
                    <td><input id="icq" type="text" name="icq" size="25" value="{$user.icq}"/></td>
                </tr>
                <tr>
                    <td><label for="skype">Skype</label></td>
                    <td><input id="skype" type="text" name="skype" size="25" value="{$user.skype}"/></td>
                </tr>
            </tbody>
        </table>
	</fieldset>
	<p>Polja, označena z zvezdico (*), so obvezna.</p>
	<div class="buttons">
	    {if $smarty.session.znf.authenticated && $smarty.session.id == $user.id}
		<a id="deleteAccount" class="button negative" href="?{$znf.moduleIndex}=user&amp;{$znf.actionIndex}=deleteAccount">Izbriši me</a>
	    {/if}
	    <button type="reset" class="button" >Prekliči</button>
	    <button type="submit" class="button positive" id="submitButton">Predloži</button>
	</div>
	<br />
	<br />
</form>